/**
 * FileName: ProductModel
 * Author: Wb
 * Date: 2025/9/24 10:35
 * Description:
 * History:
 */
package org.test.device.enty;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.test.device.architecture.CommonEntity;

/**
 * 〈一句话功能简述〉<br>
 * 〈产品物模型〉
 *
 * @author Wb
 * @create 2025/9/24
 * @since 1.0.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class ProductProperty extends CommonEntity {

    private int id;

    //产品id
    private int productId;

    //设备id
    private int deviceId;

    //属性
    private String property;

    //属性名称：温度、湿度、风速等
    private String propertyName;

    //数据类型:int,double,
    private String dataType;

    //数据范围
    private String dataRange;

    //精度值设置
    private Integer precisions;

    //读取方式：可选值: "read" (只读), "write" (只写), "report" (上报)
    private String accessMode;

    //属性值
    private String value;
}